package com.bankcomm.voice;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.bankcomm.R;

public class TalkContro extends LinearLayout {
   private View talkControView;
	public TalkContro(Context context) {
		super(context);
		 talkControView=((LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate(R.layout.xiaoi_talk_contro_widget, null);
		 
	   LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(-1,-2);

	   this.addView(talkControView,params);
	}
   public  void setText(String msg)
    {
    	((TextView)talkControView.findViewById(R.id.talk_tv)).setText(msg);
    }
    
    public  void backPIC(int res)
    {
    	talkControView.setBackgroundResource(res);
    }
    
    
}
